package com.ontheroad.mysql.path.mapper;

import com.ontheroad.path.model.PathSystemModel;
import com.ontheroad.path.model.PathUserModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.mybatis.mapper.interfaces.GenericMapper;

import java.util.List;


/**
 * PathSystemDAO接口
 *
 * @author admin
 */
public interface PathSystemMapper extends GenericMapper<PathSystemModel,Long>{
    void batchSave(List<PathSystemModel> paths);

    void deleteSysPathPointByPathId(Long pathId);

    PathSystemModel findByTimestamp(Long timestamp);

    List<Integer> findNearPath(@Param("lngMin") double lngMin, @Param("lngMax") double lngMax, @Param("latMin") double latMin, @Param("latMax") double latMax, @Param("rowBounds") RowBounds rowBounds);

    List<PathSystemModel> findPathByIds(List<Integer> userPathIds);

    //------------------请在此添加自定义方法（开始）------------------
	//------------------请在此添加自定义方法（结束）------------------

    
}
